package com.sunop.userservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sunop.userservice.mapper.RoleMapper;
import com.sunop.userservice.model.UserRole;
import com.sunop.userservice.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @since 2025-03-13
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, UserRole> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public void updateUserPoints(Integer userId, Integer points) {
        roleMapper.updateUserPoints(userId, points);
    }

    @Override
    public void updateProblemPoint(int userId, int points) {
        roleMapper.updateProblemPoint(userId, points);
    }
}
